package com.yckj.ytracker.api.factory;

import com.yckj.ytracker.api.trace.ITracerClient;
import com.yckj.ytracker.api.enums.TrackerType;
import com.yckj.ytracker.api.trace.TracerClient;

/**
 * @author liuwei
 * @version 2017/10/14 下午3:04
 * @description 调用链工厂默认实现类
 * @see
 * @since 1.0
 */
public class DefaultTrackerFactory implements ITrackerFactory {
    private static final DefaultTrackerFactory INSTANCE = new DefaultTrackerFactory();

    private DefaultTrackerFactory() {
    }

    public static DefaultTrackerFactory getInstance() {
        return INSTANCE;
    }

    @Override
    public ITracerClient getTracker(TrackerType trackerType) {
        return new TracerClient(trackerType);
    }
}
